//
//  HMHtmlTableViewCell.m
//  HMMarket
//
//  Created by haohao on 2017/6/8.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HMHtmlTableViewCell.h"

@interface HMHtmlTableViewCell ()<UIWebViewDelegate>

@end

@implementation HMHtmlTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.baseWebView.delegate = self;
    // Initialization code
}

- (void)setHtmlString:(NSString *)htmlString {
    [self.baseWebView loadHTMLString:_htmlString baseURL:nil];
}

#pragma mark - UIWebViewDelegate
- (void)webViewDidFinishLoad:(UIWebView *)webView {
    CGRect rect =  webView.frame;
    rect.size.height = webView.scrollView.contentSize.height;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
